import request from '@/utils/request.js'

export function flowInstanceSelectAll(params) {
  return request({
    url: '/api/cprojectflowinstance/selectAll',
    method: 'get',
    params
  })
}

export function flowInstancePage(params) {
  return request({
    url: '/api/cprojectflowinstance/pageQuery',
    method: 'get',
    params
  })
}

export function flowInstanceInsert(data) {
  return request({
    url: '/api/cprojectflowinstance/insert',
    method: 'post',
    data
  })
}

export function flowInstanceUpdate(data) {
  return request({
    url: '/api/cprojectflowinstance/update',
    method: 'post',
    data
  })
}


export function flowInstanceDelete(data) {
  return request({
    url: '/api/cprojectflowinstance/delete',
    method: 'get',
    params: data
  })
}

export function flowInstanceDetail(data) {
  return request({
    url: '/api/cprojectflowinstance/detail',
    method: 'get',
    params: data
  })
}


//用例导出
export function exportInstance(data) {
  return request({
    url: '/api/step/exportInstance',
    method: 'get',
    params: data
  })
}
//用例导入
export function importInstance(data) {
  return request({
    url: '/api/step/importInstance',
    method: 'post',
    data: data
  })
}

